#ifndef __GET_TSL_H__
#define __GET_TSL_H__

#define CONFIG_DEBUG
#ifdef CONFIG_DEBUG
#define dbg_printf(format, args...) printf(format, ##args)
#else
#define dbg_printf(format, args...) do{} while(0)
#endif


int tsl2561_init(const char *i2c_device);
void tsl2561_close(void);
int tsl2561_set_timing(uint8_t gain, uint8_t integ_time);
int tsl2561_enable(void);
int tsl2561_disable(void);
int tsl2561_read_data(uint16_t *ch0, uint16_t *ch1);
float tsl2561_calculate_lux(uint16_t ch0, uint16_t ch1);
int get_illuminance(float *lux);
void cleanup_tsl2561(void);







#endif
